package edu.sdjzu.exam.dto;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class QuestionDTO {
    private Long questionId;
    private String content;
    private String questionType;
    private String referenceAnswer;
    private String subject;
    private String difficulty;
    private Long createdBy;
    private Long courseId; // 所属课程ID
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    private List<QuestionOptionDTO> options;

    @Data
    public static class QuestionOptionDTO {
        private Long optionId;
        private Long questionId;
        private String content;
        private Boolean isCorrect;
        private Integer optionOrder;
    }
}
